package com.link.base.base.statistics.model;

import com.link.core.basic.model.BasicModel;

/**
 * 存储知识库、论坛帖子、案例库等对象用户浏览、阅读、收藏、点赞记录
 * 
 * @author ouyangzhenqiang
 * @date 2018/11/6
 */
public class Statistics extends BasicModel {
    /**
     * 对象Id，如知识库Id、案例库Id、论坛帖子Id
     */
    private Long moduleId;
    /**
     * 阅读对象的名称，当做redis存储的key值，可选值为forum、knowledgeBase、caseBase
     */
    private String moduleName;
    /**
     * 用户Id
     */
    private Long userId;
    /**
     * 浏览量
     */
    private Integer pageViewNum = 0;
    /**
     * 阅读人数
     */
    private Integer readNum = 0;
    /**
     * 点赞数
     */
    private Integer thumbNum = 0;
    /**
     * 收藏数
     */
    private Integer collectNum = 0;
    /**
     * 是否点赞
     */
    private String isThumb = "N";
    /**
     * 是否收藏
     */
    private String isCollect = "N";
    /**
     * 用户行为
     * 浏览、阅读、点赞、收藏
     */
    private String userAction;

    public String getIsThumb() {
        return isThumb;
    }

    public void setIsThumb(String isThumb) {
        this.isThumb = isThumb;
    }

    public String getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(String isCollect) {
        this.isCollect = isCollect;
    }

    public Long getModuleId() {
        return moduleId;
    }

    public void setModuleId(Long moduleId) {
        this.moduleId = moduleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getUserAction() {
        return userAction;
    }

    public void setUserAction(String userAction) {
        this.userAction = userAction;
    }

    public Integer getPageViewNum() {
        return pageViewNum;
    }

    public void setPageViewNum(Integer pageViewNum) {
        this.pageViewNum = pageViewNum;
    }

    public Integer getReadNum() {
        return readNum;
    }

    public void setReadNum(Integer readNum) {
        this.readNum = readNum;
    }

    public Integer getThumbNum() {
        return thumbNum;
    }

    public void setThumbNum(Integer thumbNum) {
        this.thumbNum = thumbNum;
    }

    public Integer getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(Integer collectNum) {
        this.collectNum = collectNum;
    }
}
